<extend name='Moban/index' />

<block name='denglu'>
<div style='cursor:pointer' id="denglu_none">
		<a data-toggle="dropdown" class="dropdown-toggle">
			<img class="nav-user-photo" src="" />
			<a  href="<{:U('Myhome/index')}>">
				<span class="user-info">
					<small>欢迎光临:</small>
					<{$Think.session.admin_user.nickname}>
				</span>
			</a>							
		</a>
		<a href="<{:U('Index/logout')}>">退出</a>						
</div>
</block>

<block name='motaikuan'>
	<script>
		$('#myModal').modal('no')
	</script>
</block>

<block name='main'>
<div class="row">	
    <div class="col-md-8 col-md-offset-2">
    <form  action="<{:U('Myhome/update')}>" method="post" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="main-tab">
		<input type="hidden" name="id" value="<{$Think.session.admin_user.id}>">
        <input type="hidden" name="id" value="<{$Think.session.admin_user.username}>">
        <input type="hidden" name="id" value="<{$Think.session.admin_user.password}>">
      	
      	<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'" class="h3">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">修改基本资料</td>
        </tr>

      	<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">昵称：</td>
	        <td align="left" valign="middle" class="borderright borderbottom main-for">
	        <input type="text" name="name" value="<{$Think.session.admin_user.nickname}>">
	        </td>
        </tr>

		<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">头像：</td>
	        <td align="left" valign="middle" class="borderright borderbottom main-for">
	        <input type="file" name="img" value="<{$Think.session.admin_user.img}>">
	        </td>
        </tr>

        <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">姓名：</td>
	        <td align="left" valign="middle" class="borderright borderbottom main-for">
	        <input type="text" name="name" value="<{$Think.session.admin_user.name}>">
	        </td>
        </tr>
      
	  	<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">性别：</td>
	        <td align="left" valign="middle" class="borderright borderbottom main-for">
	        <input type="radio" name="sex" value="0" <{if $Think.session.admin_user.sex==0}>checked<{/if}> >女
        	<input type="radio" name="sex" value="1" <{if $Think.session.admin_user.sex==1}>checked<{/if}> >男	     
        </td>
      	</tr>

      	<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
	        <td align="right" valign="middle" class="borderright borderbottom bggray">&nbsp;</td>
	        <td align="left" valign="middle" class="borderright borderbottom main-for">
	        <input name="" type="submit" value="提交" class="text-but">
	        <input name="" type="reset" value="重置" class="text-but"></td>
        </tr>
    </table>
    </form>
    </div>
</div>

</block>

